package packet;

import java.io.Serializable;



import sql.MapChange;
import TCP.Communication.CommunicationServer;
import TCP.Communication.LinkerClient;
import TCP.Communication.LinkerServer;
import TCP.Packet.sys.Packet_i;

public class sendLocation implements Packet_i, Serializable{

	public double Latitude, longitude;
	public long locationtime;
		
	@Override
	public void runOnServer(LinkerServer ls) {
		CommunicationServer.cs.sendTo指定名稱(ls, this, new String[]{"angel"});
		System.out.println(Latitude);
		System.out.println(longitude);
		System.out.println(locationtime);

	}

	@Override
	public void runOnClient(LinkerClient lc) {
		MapChange map=new MapChange();
		map.mapChange(Latitude, longitude, locationtime);
	}
	

}
